<?php
error_reporting(0);
include 'conn/conn.php';

$info =  $_REQUEST["info"];
$sql="DELETE FROM tbl_map_data";
$run = mysql_query($sql);
	
	$sql1="INSERT INTO tbl_map_data(`info`,`is_active`) VALUES ('$info','Y')";
	$run = mysql_query($sql1);
	
			if($run)
			{
				header("Location:edit-map.php?msg=success");
				
			}
			else 
			{
				header("Location:edit-map.php?msg=failure");
			}

?>